package com.yzjs.wx.request;




import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(
        name = "xml",
        strict = false
)
public class WxPayUnifiedorderRequest {
    @Element(
            name = "appid"
    )
    private String appid;
    @Element(
            name = "mch_id"
    )
    private String mchId;
    @Element(
            name = "nonce_str"
    )
    private String nonceStr;
    @Element(
            name = "sign"
    )
    private String sign;
    @Element(
            name = "attach",
            required = false
    )
    private String attach;
    @Element(
            name = "body",
            required = false
    )
    private String body;
    @Element(
            name = "detail",
            required = false
    )
    private String detail;
    @Element(
            name = "notify_url"
    )
    private String notifyUrl;
    @Element(
            name = "openid",
            required = false
    )
    private String openid;
    @Element(
            name = "out_trade_no"
    )
    private String outTradeNo;
    @Element(
            name = "spbill_create_ip"
    )
    private String spbillCreateIp;
    @Element(
            name = "total_fee"
    )
    private Integer totalFee;
    @Element(
            name = "trade_type"
    )
    private String tradeType;

    public WxPayUnifiedorderRequest() {
    }

    public String getAppid() {
        return this.appid;
    }

    public String getMchId() {
        return this.mchId;
    }

    public String getNonceStr() {
        return this.nonceStr;
    }

    public String getSign() {
        return this.sign;
    }

    public String getAttach() {
        return this.attach;
    }

    public String getBody() {
        return this.body;
    }

    public String getDetail() {
        return this.detail;
    }

    public String getNotifyUrl() {
        return this.notifyUrl;
    }

    public String getOpenid() {
        return this.openid;
    }

    public String getOutTradeNo() {
        return this.outTradeNo;
    }

    public String getSpbillCreateIp() {
        return this.spbillCreateIp;
    }

    public Integer getTotalFee() {
        return this.totalFee;
    }

    public String getTradeType() {
        return this.tradeType;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public void setSpbillCreateIp(String spbillCreateIp) {
        this.spbillCreateIp = spbillCreateIp;
    }

    public void setTotalFee(Integer totalFee) {
        this.totalFee = totalFee;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WxPayUnifiedorderRequest)) {
            return false;
        } else {
            WxPayUnifiedorderRequest other = (WxPayUnifiedorderRequest)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label167: {
                    Object this$appid = this.getAppid();
                    Object other$appid = other.getAppid();
                    if (this$appid == null) {
                        if (other$appid == null) {
                            break label167;
                        }
                    } else if (this$appid.equals(other$appid)) {
                        break label167;
                    }

                    return false;
                }

                Object this$mchId = this.getMchId();
                Object other$mchId = other.getMchId();
                if (this$mchId == null) {
                    if (other$mchId != null) {
                        return false;
                    }
                } else if (!this$mchId.equals(other$mchId)) {
                    return false;
                }

                label153: {
                    Object this$nonceStr = this.getNonceStr();
                    Object other$nonceStr = other.getNonceStr();
                    if (this$nonceStr == null) {
                        if (other$nonceStr == null) {
                            break label153;
                        }
                    } else if (this$nonceStr.equals(other$nonceStr)) {
                        break label153;
                    }

                    return false;
                }

                Object this$sign = this.getSign();
                Object other$sign = other.getSign();
                if (this$sign == null) {
                    if (other$sign != null) {
                        return false;
                    }
                } else if (!this$sign.equals(other$sign)) {
                    return false;
                }

                label139: {
                    Object this$attach = this.getAttach();
                    Object other$attach = other.getAttach();
                    if (this$attach == null) {
                        if (other$attach == null) {
                            break label139;
                        }
                    } else if (this$attach.equals(other$attach)) {
                        break label139;
                    }

                    return false;
                }

                Object this$body = this.getBody();
                Object other$body = other.getBody();
                if (this$body == null) {
                    if (other$body != null) {
                        return false;
                    }
                } else if (!this$body.equals(other$body)) {
                    return false;
                }

                label125: {
                    Object this$detail = this.getDetail();
                    Object other$detail = other.getDetail();
                    if (this$detail == null) {
                        if (other$detail == null) {
                            break label125;
                        }
                    } else if (this$detail.equals(other$detail)) {
                        break label125;
                    }

                    return false;
                }

                label118: {
                    Object this$notifyUrl = this.getNotifyUrl();
                    Object other$notifyUrl = other.getNotifyUrl();
                    if (this$notifyUrl == null) {
                        if (other$notifyUrl == null) {
                            break label118;
                        }
                    } else if (this$notifyUrl.equals(other$notifyUrl)) {
                        break label118;
                    }

                    return false;
                }

                Object this$openid = this.getOpenid();
                Object other$openid = other.getOpenid();
                if (this$openid == null) {
                    if (other$openid != null) {
                        return false;
                    }
                } else if (!this$openid.equals(other$openid)) {
                    return false;
                }

                label104: {
                    Object this$outTradeNo = this.getOutTradeNo();
                    Object other$outTradeNo = other.getOutTradeNo();
                    if (this$outTradeNo == null) {
                        if (other$outTradeNo == null) {
                            break label104;
                        }
                    } else if (this$outTradeNo.equals(other$outTradeNo)) {
                        break label104;
                    }

                    return false;
                }

                label97: {
                    Object this$spbillCreateIp = this.getSpbillCreateIp();
                    Object other$spbillCreateIp = other.getSpbillCreateIp();
                    if (this$spbillCreateIp == null) {
                        if (other$spbillCreateIp == null) {
                            break label97;
                        }
                    } else if (this$spbillCreateIp.equals(other$spbillCreateIp)) {
                        break label97;
                    }

                    return false;
                }

                Object this$totalFee = this.getTotalFee();
                Object other$totalFee = other.getTotalFee();
                if (this$totalFee == null) {
                    if (other$totalFee != null) {
                        return false;
                    }
                } else if (!this$totalFee.equals(other$totalFee)) {
                    return false;
                }

                Object this$tradeType = this.getTradeType();
                Object other$tradeType = other.getTradeType();
                if (this$tradeType == null) {
                    if (other$tradeType != null) {
                        return false;
                    }
                } else if (!this$tradeType.equals(other$tradeType)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxPayUnifiedorderRequest;
    }



    public String toString() {
        return "WxPayUnifiedorderRequest(appid=" + this.getAppid() + ", mchId=" + this.getMchId() + ", nonceStr=" + this.getNonceStr() + ", sign=" + this.getSign() + ", attach=" + this.getAttach() + ", body=" + this.getBody() + ", detail=" + this.getDetail() + ", notifyUrl=" + this.getNotifyUrl() + ", openid=" + this.getOpenid() + ", outTradeNo=" + this.getOutTradeNo() + ", spbillCreateIp=" + this.getSpbillCreateIp() + ", totalFee=" + this.getTotalFee() + ", tradeType=" + this.getTradeType() + ")";
    }
}

